/*
 ============================================================================
 Page	     : 288-289
 Name        : pnt_add.c
 Date	     : 20210405
 Author      : Hbue 18060333
 Copyright   : Your copyright notice
 Description : 指针地址
 ============================================================================
 */

#include <stdio.h>
#define SIZE 4
int main(void)
{
	short dates[SIZE];
	short *pti = NULL;
	double bills[SIZE];
	double *ptf = NULL;
	pti = dates;		// 把指针地址赋给指针
	ptf = bills;

	printf("%23s %15s\n", "short", "double");
	for(short index = 0; index < SIZE; index++)
	{
		printf("pointers + %d: %10p %10p\n", index, pti + index,ptf + index);
	}
	return 0;
}

